//
//  WQNetworkTools+Extension.swift
//  WeiBo
//
//  Created by 张德华 on 7/25/16.
//  Copyright © 2016 ZhangDeHua. All rights reserved.
//

import Foundation


extension WQNetworkTools {
    
    func loadStatus(finished: ([String: AnyObject]?) -> ()) {
        
        let urlString = "https://api.weibo.com/2/statuses/home_timeline.json"
        
        guard let accessToken = WQUserAccountModel.sharedUserAccount.access_token else {
            
            return
        }
        
        let params = ["access_token": accessToken]
        
        request(.GET, URLString: urlString, parameters: params, finished: finished)
        
    }
    
    
    
    
}